<?php

/**
 * contabilidadvacio actions.
 *
 * @package    gestdent
 * @subpackage contabilidadvacio
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 12479 2008-10-31 10:54:40Z fabien $
 */
class contabilidadvacioActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
    //$this->forward('default', 'module');
      
      $this->gestdent_centro_costo_list = GestdentCentroCostoPeer::doSelect(new Criteria());

      $this->gestdent_hora_list = GestdentHoraPeer::doSelect(new Criteria());

      //QUERY DE BOX
      $MyCriterioBox = new Criteria();
      $MyCriterioBox->add(GestdentBoxPeer::SUCURSAL,1);
      $this->gestdent_box_list = GestdentBoxPeer::doSelect($MyCriterioBox);

      //QUERY DE RESERVAS
      $MyCriterioReservas = new Criteria();
      $MyCriterioReservas->add(GestdentReservaPeer::FECHA,"2015-01-05");
      $MyCriterioReservas->add(GestdentReservaPeer::SUCURSAL,1);
      $this->gestdent_reserva_list = GestdentReservaPeer::doSelect($MyCriterioReservas);

  }
}
